import java.util.ArrayList;


public class State {
	private String name;
	private Boolean accept;
	private String token;
	private ArrayList<Transition> transitions = new ArrayList<Transition>();
	
	public State(String name)
	{
		this(name, false, "default");
	}
	
	public State(String name, Boolean accept, String token)
	{
		this.name = name;
		this.accept = accept;
		this.token = token;
		this.transitions = null;
	}
	
	public void setTransitions(ArrayList<Transition> trans)
	{
		this.transitions = trans;
	}
	
	public ArrayList<Transition> getTransitions()
	{
		return transitions;
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getToken()
	{
		return token;
	}
	
	public Boolean accept()
	{
		return accept;
	}
	
	public void setAceept(Boolean set)
	{
		this.accept = set;
	}
	
	public void setToken(String set)
	{
		this.token = set;
	}
}
